<%@page import="java.util.Date"%>
<%@page import="com.xuerhua.yxt.utils.DateUtil"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path;
	String currDate = DateUtil.dateToStr(new Date(), DateUtil.DEFAULT_DATE_FORMAT3);
	String lastDate = DateUtil.getLastDate(1);
%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
<title>我的报名列表</title>
<jsp:include page="/WEB-INF/page/common/_header.jsp"></jsp:include>
<script src="<%=basePath %>/js/picker.js"></script>
<body ontouchstart style="background-color: #f8f8f8;">
  <div id="mainBox">
    <div class="weui-header bg-blue"> 
    	<h1 class="weui-header-title">
    		<c:choose>
    			<c:when test="${signUpType == 'newStudent'}">新生报名列表</c:when>
    			<c:when test="${signUpType == 'middleStudent'}">插班生报名列表</c:when>
    			<c:when test="${signUpType == 'internatStudent'}">国籍班报名列表</c:when>
    		</c:choose>
    	</h1>
    	<div class="weui-header-right"><a href="<%=basePath %>/signup/${signUpType}?type=sign" class="weui_btn weui_btn_mini weui_btn_primary bg-green">继续报名</a></div>
    </div>
    <div class="weui_cells weui_cells_access mt0">
		<c:forEach var="itm" items="${list}">
			<a class="weui_cell" href="<%=basePath %>/signup/${signUpType}/detail/${itm.id}" style="display: block;text-decoration: none;">
	            <div class="weui_cell_bd weui_cell_primary">
					<h4 class="weui_media_desc f-blue">报名号：${itm.signupNo}</h4>
					<p class="weui_media_desc mt5">学生姓名：${itm.studentName }</p>
					<p class="weui_media_desc mt5">学生证件号：${itm.studentIdNo }</p>
					<p class="weui_media_desc mt5">报读年级：${itm.signGrade}</p>
					<p class="weui_media_desc mt5">报名时间：<fmt:formatDate value="${itm.signUpTime}" type="both"/> </p>
					<p class="weui_media_desc mt5">录取结果：<c:choose>
		    			<c:when test="${itm.status == '001'}"><span class="f-red">待处理</span></c:when>
		    			<c:when test="${itm.status == '002'}"><span class="f-gray">未录取</span></c:when>
		    			<c:when test="${itm.status == '000'}"><span class="f-green">恭喜您，小孩被录取了</span></c:when>
		    		</c:choose> </p>
		    		<c:if test="${!empty itm.resultMessage}">
		    			<p class="weui_media_desc mt5">结果说明：${itm.resultMessage }</p>
		    		</c:if>
	   			</div>
	        </a>
		</c:forEach>
	</div>
  </div>
  <script type="text/javascript">
 	 if(!/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) {
 		$("#mainBox").attr("style","width:500px;margin: 0 auto;")
 	 }
  </script>
</body>
</html>